package com.leilei.greendao;

import android.app.Application;

import com.facebook.stetho.Stetho;
import com.leilei.greendao.db.GreenDaoManager;

/**
 * Created by leilei on 2018/1/27.
 */

public class Myapplication extends Application {
    //静态单例
    public static Myapplication instances;

    @Override
    public void onCreate() {
        super.onCreate();
        instances = this;
        GreenDaoManager.getInstances();
        initSqlite();
    }


    public static Myapplication getInstances() {
        return instances;
    }

    private void initSqlite() {
        Stetho.initializeWithDefaults(this);
    }
}
